//
//  QuartzView.m
//  AppFinance
//
//  Created by wei on 12-4-5.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "AFQuartzView.h"

@implementation AFQuartzView

//@synthesize context;
//@synthesize viewContext;

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        //self.backgroundColor = [UIColor blackColor];
		self.opaque = YES;
		self.clearsContextBeforeDrawing = YES;
        
        [self initView];
    }
    return self;
}

// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    [self drawInContext:UIGraphicsGetCurrentContext() rect:rect];
}

// -----------------------------------------------------------------------------
#pragma mark - override methed
// 初始化UIView
-(void)initView{

}

// 绘制
-(void)drawInContext:(CGContextRef)context rect:(CGRect)rect{

}

@end
